package com.sat.learning;

import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.ImageButton;

import com.sat.learning.Views.SlideMenu;

/**
 * Project:Projects
 * Package:com.sat.learning
 * Created by 透野君爱打奶炮 on 2018-03-22 at 13:48
 */
public class NewsActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_news);

        final SlideMenu sm = (SlideMenu) findViewById(R.id.sm);
        ImageButton ib_back = (ImageButton) findViewById(R.id.ib_back);
        ib_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                sm.switchMode();
            }
        });
    }

    public void select(View v){
        Log.d("TAG","点击左侧Menu");
    }
}
